package com.axc.gallery2.edit.overLay;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

import com.axc.gallery2.R;
import com.axc.gallery2.edit.activity.MenuIcon;

public class DecoratePics {
	public void AddPic(LinearLayout headview, final OverLayAdapter adapter,
			final IOverLaybaseMethod view, Context context, int string,
			int iconId, final int min, final int source) {
		LinearLayout pic = new MenuIcon(context, string, iconId);
		pic.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				adapter.setTopImg(view, min, source);
			}
		});
		headview.addView(pic);
	}

	public int[] Img_icon = new int[] { R.drawable.glass_heart_shape_icon,
			R.drawable.glass_heart_shape_black_icon, R.drawable.bird_icon,
			R.drawable.hat_icon, R.drawable.butterfly_icon,
			R.drawable.smile1_icon, R.drawable.smile2_icon,
			R.drawable.mustache_icon, R.drawable.cigar_icon,
			R.drawable.smokepipe_icon, R.drawable.man_icon,
			R.drawable.dog_iocn, R.drawable.dog2_icon, R.drawable.girl_icon,
			R.drawable.run_icon };

	public int[] Img_min = new int[] { R.drawable.glass_heart_shape_min,
			R.drawable.glass_heart_shape_black_min, R.drawable.bird_min,
			R.drawable.hat_min, R.drawable.butterfly_min,
			R.drawable.smile1_min, R.drawable.smile2_min,
			R.drawable.mustache_min, R.drawable.cigar_min,
			R.drawable.smokepipe_min, R.drawable.man_min, R.drawable.dog_min,
			R.drawable.dog2_min, R.drawable.girl_min, R.drawable.run_min };

	public int[] Img_source = new int[] { R.drawable.glass_heart_shape,
			R.drawable.glass_heart_shape_black, R.drawable.bird_source,
			R.drawable.hat_source, R.drawable.butterfly_source,
			R.drawable.smile1_source, R.drawable.smile2_source,
			R.drawable.mustache_source, R.drawable.cigar_source,
			R.drawable.smokepipe_source, R.drawable.man_source,
			R.drawable.dog_source, R.drawable.dog2_source,
			R.drawable.girl_source, R.drawable.run_source };

	public int[][] getImg() {
		int[][] imgs = new int[Img_icon.length][3];
		for (int i = 0; i < imgs.length; i++) {
			imgs[i][0] = Img_icon[i];
			imgs[i][1] = Img_min[i];
			imgs[i][2] = Img_source[i];
		}
		return imgs;
	}
}